package org.jeecg.modules.system.service;

import org.apache.catalina.User;
import org.jeecg.modules.system.entity.SysDepartPosition;
import org.jeecg.modules.system.entity.SysUserPosition;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;

/**
 * @Description: 用户岗位表
 * @Author: jeecg-boot
 * @Date:   2019-08-04
 * @Version: V1.0
 */
public interface ISysUserPositionService extends IService<SysUserPosition> {

	List<SysUserPosition> selectByMainId(String mainId,String sqlMap);
	List<SysUserPosition> selectServerByMainId(String mainId, String tenantId);
	Integer selectPosition(Map map);
	SysUserPosition existPosition(String userId);
	Integer updatePosition(String str,String userId);
	List<SysDepartPosition> selectPositionId(String userId);
	List<SysUserPosition> selectPositionIds(String departId);

    void addBatch(String userId, String departId, List<SysDepartPosition> SysDepartPosition);

	List<SysUserPosition> selectDepartPosition(String userId);

    Integer selectByDepartPositionId(String receiveAttr, String userId);

	void editBatch(String userId, String oldDepartId,String newDepartId, List<SysDepartPosition> sysDepartPositions);

	List<String> queryPositionId(String userId, String parentId);


}
